<script language="javascript" >
function formatTitle(title, currentArray, currentIndex, currentOpts) {
    return (title && title.length ? '<b>' + title + '</b>' : '' ) + '<br >Image ' + (currentIndex + 1) + ' of ' + currentArray.length ;
}


$().ready(

  function(){

  <?php
    if(JQUERY_IMG_EFFECT==2){
  ?>
    $("a.fancybox").attr('rel', 'gallery').fancybox({
      titleFormat: formatTitle,
      transitionIn: 'none',
      transitionOut: 'none',
      showNavArrows: true,
      titlePosition: 'inside'
    });
<?php
  }else
  if(JQUERY_IMG_EFFECT==1){
?>

    $("a.fancybox").attr('rel', 'gallery').jqzoom({

    });
<?php
}
?>
  }


);
</script>
